using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DAL;

namespace BUS
{
    public class tbtaikhoanBUS
    {
        public static void Insert(tbtaikhoanDTO tk)
        {
            tbtaikhoanDAL tbtaikhoanDAL = new tbtaikhoanDAL();
            tbtaikhoanDAL.Insert(tk);
        }
        public static void Update(tbtaikhoanDTO tk)
        {
            tbtaikhoanDAL tbtaikhoanDAL = new tbtaikhoanDAL();
            tbtaikhoanDAL.Update(tk);
        }
        public static void Delete(int iD)
        {
            tbtaikhoanDAL tbtaikhoanDAL = new tbtaikhoanDAL();
            tbtaikhoanDAL.Delete(iD);
        }
        public static tbtaikhoanDTOColection GET(string Where, int PageIndex, int PageSize,
                                        string OrderBy, string OrderDirection,
                                        out int TotalRecords)
        {
            tbtaikhoanDAL tbtaikhoanDAL = new tbtaikhoanDAL();
            return tbtaikhoanDAL.GET(Where, PageIndex, PageSize,
                            OrderBy, OrderDirection, out TotalRecords);
        }
    }
}
